<!--header-->
<div app-header left='' center='优惠券' right='使用说明' white='true'></div>
<!--header end-->
<div class="mui-content" >
	<div class="coupon">
		<ul>

			<li ng-repeat="item in redlist track by $index" ng-class="{true:'',false:'vailable'}[item.selected&&canuse==true||isall]">
				<label for="redlist{{$index}}">
				<div ng-class="{true:'coupon_box',false:'coupon_box coupon_box_invalid'}[item.selected&&canuse==true||isall]">
					<div class="coupon_box_left">
						<h1>¥{{item.coupon_value}}</h1>
						<p>抵扣金</p>
					</div>
					<div class="coupon_box_right">
						<h1 ng-if="item.least_amount>0">单笔投资金额{{item.least_amount}}元及以上可用</h1>
						<h1 ng-if="item.least_amount==0">单笔投资金额不限</h1>
						<p ng-if="item.floor_term!=0&&item.upper_term!=0">适用期限{{item.floor_term}}天-{{item.upper_term}}天可用</p>
						<p ng-if="item.floor_term==0&&item.upper_term==0">适用期限不限</p>
						<p ng-if="item.upper_term==0&&item.floor_term!=0">适用期限{{item.floor_term}}天以上可用</p>
						<p ng-if="item.floor_term==0&&item.upper_term!=0">适用期限{{item.upper_term}}天以下可用</p>
						<p>有效期至:{{item.expire_date|limitTo:10}}</p>
					</div>
					<input id="redlist{{$index}}" type="checkbox" info="{{item}}" ng-click="selected($index)" ng-model="item.selected"  ng-if="canuse"/>
				</div>
				</label>
			</li>
			<!--<li style="background-image: url(image/coupons_2.png);">
				<div class="coupon_box coupon_box_invalid">
					<div class="coupon_box_left">
						<h1>¥2</h1>
						<p>抵扣金</p>
					</div>
					<div class="coupon_box_right">
						<h1>单笔投资金额1000元及以上可用</h1>
						<p>适用期限35天及以上</p>
						<p>有效期至:2017-12-07</p>
					</div>
				</div>
			</li>-->
		</ul>

	</div>
</div>

<!--footer-->
<div class="coupon_foot" ng-if="canuse">
	<div class="coupon_foot_l">
		<h1 ng-if="zong.length==0">¥&nbsp;0<span>&nbsp;(共0张)</span> </h1>
		<h1 ng-if="zong.length!=0">¥{{zong[0].coupon_value}}<span>&nbsp;(共{{zong.length}}张)</span> </h1>
		<p>红包金额</p>
	</div>
	<div class="coupon_foot_r" ng-click="save()">
		确定
	</div>
</div>